package com.accounting.model;

/**
 * AssetId entity. @author MyEclipse Persistence Tools
 */

public class AssetId implements java.io.Serializable {

	// Fields

	private Admin admin;
	private String typeId;

	// Constructors

	/** default constructor */
	public AssetId() {
	}

	/** full constructor */
	public AssetId(Admin admin, String typeId) {
		this.admin = admin;
		this.typeId = typeId;
	}

	// Property accessors

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public String getTypeId() {
		return this.typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AssetId))
			return false;
		AssetId castOther = (AssetId) other;

		return ((this.getAdmin() == castOther.getAdmin()) || (this.getAdmin() != null
				&& castOther.getAdmin() != null && this.getAdmin().equals(
				castOther.getAdmin())))
				&& ((this.getTypeId() == castOther.getTypeId()) || (this
						.getTypeId() != null
						&& castOther.getTypeId() != null && this.getTypeId()
						.equals(castOther.getTypeId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAdmin() == null ? 0 : this.getAdmin().hashCode());
		result = 37 * result
				+ (getTypeId() == null ? 0 : this.getTypeId().hashCode());
		return result;
	}

}